Personal tools

Lua/Server/WorldNetworkObject

From JC2-MP Documentation

< Lua‎ | Server
Jump to: navigation, search

Description

Functions same as NetworkObject, but takes place in a game world and doesn't exist for players outside its stream distance.

Static functions

Returns Prototype
WorldNetworkObject Create(Vector3, table)
WorldNetworkObject Create(Vector3)
WorldNetworkObject Create(table)
WorldNetworkObject GetById(number)

Functions

Returns Prototype
SetAngle(Angle)
SetPosition(Vector3)

Functions inherited from StreamableObject

Returns Prototype
Angle GetAngle()
CellID GetCellId()
boolean GetEnabled()
Vector3 GetPosition()
number GetStreamDistance()
iterator GetStreamedPlayers()
World GetWorld()
SetEnabled(boolean)
SetStreamDistance(number)
SetWorld(World)

Functions inherited from NetworkObject

Returns Prototype
SetNetworkValue(string, object)

Functions inherited from SharedObject

Returns Prototype
number GetId()
string GetName()
object GetValue(string, object)
object GetValue(string)
table GetValues()
Remove()
SetValue(string, object)

Operators

Returns Prototype
boolean WorldNetworkObject == WorldNetworkObject